package com.fs.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.fs.dao.AdminsMapper;
import com.fs.entity.Admins;
import com.fs.entity.Attractions;
import com.fs.service.AdminsService;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;

/**
 * @author hua
 * @version 1.0
 * @title AdminsServiceImpl
 * @description
 * @create 2024/4/18 10:59
 */
@Service("AdminsService")
public class AdminsServiceImpl implements AdminsService {

    @Resource
    private AdminsMapper adminsMapper;

    @Override
    public List<Admins> select() {
        return null;
    }

    @Override
    public Admins selectById(Serializable id) {
        return adminsMapper.selectById(id);
    }

    @Override
    public Admins find(Object id) {
        return null;
    }

    @Override
    public Admins findEntity(Admins id) {
        return null;
    }

    @Override
    public List<Admins> selectPage(int pageNum, int pageSize) {
        return null;
    }

    @Override
    public int delete(Serializable id) {
        return 0;
    }

    @Override
    public int insert(Admins y) {
        return 0;
    }

    @Override
    public int update(Admins y) {
        return 0;
    }

    @Override
    public Admins selectAdminsByUserName(String userName) {
        LambdaQueryWrapper<Admins> queryWrapper=new LambdaQueryWrapper<>();
        queryWrapper.eq(Admins::getUsername,userName);
        return adminsMapper.selectOne(queryWrapper);
    }
}
